#include "proc.h"

void test()
{
  char Bar[MAX];
  memset(Bar,'\0',sizeof(Bar));

  int i=0;
  const char* p="|/-\\";
  while(i<=100)
  {
    printf("[%-100s][%d%%][%c]\r",Bar,i,p[i%4]);
    fflush(stdout);
    Bar[i++]='#';
    usleep(10000);
  }

}
